﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace XiaoYou.XuzhouZhihuiYinshui.WaterQuality
{
    public class WaterQualityHistory : Volo.Abp.Domain.Entities.Auditing.CreationAuditedEntity<int>
    {
        public double Value { get; set; }

        /// <summary>
        /// 最小值（记录当时存储信息时预警值）
        /// </summary>
        public double MinAnomaly { get; set; }

        /// <summary>
        /// 最大值（记录当时存储信息时预警值）
        /// </summary>
        public double MaxAnomaly { get; set; }

        /// <summary>
        /// 是否异常
        /// </summary>
        public bool IsAnomaly { get; set; }

        /// <summary>
        /// 低值异常
        /// </summary>
        public bool IsMinAnomaly { get; set; } = false;

        /// <summary>
        /// 高值异常
        /// </summary>
        public bool IsMaxAnomaly { get; set; } = false;

        public int WaterQualityDataId { get; set; }

        public virtual WaterQualityData WaterQualityData { get; set; }
    }
}
